package com.yinwq.shorturl.service;

/**
 * @author: yinwenqiang@qccr.com
 * @date: Created in 2019/10/28 20:10
 */
public interface ShortService {

    /**
     * 生成短链接，已存在则直接返回
     *
     * @author yinwenqiang
     * @date  2019/10/28 20:18
     * @param longUrl
     * @return {@link String}
     */
    String generateShorUrl(String longUrl);

    /**
     * 短链接Code查询长连接
     *
     * @author yinwenqiang
     * @date  2019/10/28 20:34
     * @param shortUrlCode
     * @return {@link String}
     */
    String queryLongUrl(String shortUrlCode);
}
